package pl.koziolekweb.loggerservice;

public final class Sfl4jAdapter implements LoggerFactoryAdapter<org.slf4j.Logger> {

	public org.slf4j.Logger getLogger(Object... factoryArguments) {
		org.slf4j.Logger logger = null;
		if (factoryArguments.length <= 0)
			logger = org.slf4j.LoggerFactory.getLogger(Object.class);
		if (factoryArguments[0] instanceof Class)
			logger = org.slf4j.LoggerFactory.getLogger((Class<?>) factoryArguments[0]);
		if (factoryArguments[0] instanceof String)
			logger = org.slf4j.LoggerFactory.getLogger(factoryArguments[0].toString());
		return logger;
	}
}